import request from '@/utils/request'

export function permissionsList(params) {
  return request({
    url: 'permissions/lists',
    method: 'get',
    params
  })
}

export function createPermission(params) {
  return request({
    url: 'permissions/store',
    method: 'post',
    data: params
  })
}

export function updatePermission(params) {
  return request({
    url: 'permissions/update',
    method: 'post',
    data:params
  })
}

export function deletePermission(params) {
  return request({
    url: 'permissions/destroy',
    method: 'post',
    data:params
  })
}
